import java.io.File;
import java.util.LinkedList;

/**
 * author: MaHX
 * date: 2019/8/19/15:20
 * description: 递归文件夹的文件
 **/
public class FindFile {
    public static void findFiles(File file){
        File[] files = file.listFiles();
        for (int i = 0; i < files.length; i++) {
            if (files[i].isFile()){
                System.out.println(files[i]);
            }else {
                findFiles(files[i]);
            }
        }
    }

    public static void main(String args[]){
        File file = new File("F:\\网页");
        findFiles(file);
        LinkedList<Integer> linkedList = new LinkedList<Integer>();
        linkedList.add(3);
        linkedList.set(1,5);
    }
}
